{% extends 'beastly/base.html' %}
{% block extrastyle %}
<link rel="stylesheet" type="text/css" media="screen" href="{{ media_url }}beastly/css/posts.css" />
{% endblock %}

{% block page_title %}
<h2>Recent Posts</h2>
<p>{{ posts_list.count }} posts</p>
{% endblock %}

{% block content %}
<div id="posts">
	{% for post in posts_list %}
	<div class="post">
		<div class="user_details">
			<p class="post_date"><a rel="bookmark" href="#post-{{ post.count }}"><abbr class="updated">{{ post.added|date:"M d, Y g:i a" }}</abbr></a></p>
			<img src="{{ media_url }}beastly/img/user.png" alt="user" />
			<a href="">{{ post.user.username }}</a>
			<p class="posts">{{ user.post_set.count }} posts</p>
		</div>
		<div class="description">
		{{ post.description_html }}
		</div>
	</div>
	{% endfor %}
</div>
{% endblock %}
